//
//  HXTagCollectionViewCell.m
//  黄轩 https://github.com/huangxuan518
//
//  Created by 黄轩 on 16/1/13.
//  Copyright © 2015年 IT小子. All rights reserved.
//

#import "HXTagCollectionViewCell.h"

@interface HXTagCollectionViewCell()
@end

@implementation HXTagCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        _viewBox = [[UIView alloc] initWithFrame:self.bounds];
        [self.contentView addSubview:_viewBox];
        
        _titleLabel = [[UILabel alloc] initWithFrame:self.viewBox.bounds];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        [_viewBox addSubview:_titleLabel];
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
}

- (void)prepareForReuse{
    [super prepareForReuse];
    self.titleLabel.text = @"";
}

- (void)btnCloseAction{
    
}

- (UIImageView *)close{
    if (!_close) {
        _close = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"31_icon_close"]];
        _close.contentMode = UIViewContentModeScaleToFill;
        [self.contentView addSubview:_close];
    }
    return _close;
}

@end
